package test3;

public class ArrayTest {
    public static void main(String[] args) {
        Array[] arr = new Array[3];
        arr[0] = new Array("001","华为mate60",6999.99,2588);
        arr[1] = new Array("002","iPhone15",8999.99,2888);
        arr[2] = new Array("003","小米13",5999.99,1888);

        for (int i = 0; i <3 ; i++) {
            Array arr1 = arr[i];
            System.out.println(arr1.getId()+","+arr1.getName()+","+arr1.getPrice()+","+arr1.getInventory());
        }
    }
}
